package org.csmzxy.class2333;
interface Playable{
    void play();
}
class Recordable{
    void record(){
        System.out.println("具有录制功能");
    }
}
class AudioPlayer extends Recordable implements Playable{
    public void play(){
        System.out.println("音频播放器具有播放音乐的功能");
    }
    public void record(){
        System.out.println("音频播放器具有录制音乐的功能");
    }
}
public class Example12 {
    public static void main(String[] args){
        AudioPlayer audioPlayer = new AudioPlayer();
        audioPlayer.play();
        audioPlayer.record();
    }
}
